adding more code written in process to learn scala