Exercises working towards Assignment 1