completed hw assignment 3