assignment4 - part1