lab2(p)

partial commit for lab2 to work. currently finished section 5.