scala homeworks