working version of assignment p2: still need to add texturing