HW 5 and 6 solns and setup