assignment 4 example 2