QPC homework 1,2,3