changes for Homework 3