Assignment 2 trial solution 1