Finishing homework 2.