Started and completed all three programs in homework 3