assignments for scala exercises