Getting rid of functional programming for java devs module