Assignment 1 sample solution