assignment 2 example 1