Fixed errors in Assignment 2.