FINISHED HOMEWORK 2