scala slides and homework