Added java and scala code for classes. traits and objects