scala first homework