Assignment 5 (part2 )