Java prototype of the smallest budget manager ever