CAP4770 hw1 2.3 and 2.6 completed