hw3 part-3 updated