Initial commit week 4 homework solution.