Gareth midterm homework