assignment 2 example 2