work on part II of the assignment