first attempt at homework