Complete CIS-2450 homework 2 part 1 and 2

Partially done with part 3.