Homework assignments for Scala class