add scala functional + objects 2