progress on homework3, to be continued