updating homework #6