first attempt at finished homework