wrote out prob 4, now to solve heeeeeeeiiiiimmmm