Write unit-tests!!! See 