part b of the assignment one