Assignment 1 programming Part Solution