first attempt at hw3