reverted to clean working version of homework 6