set up first half of assignment 1