QPC homework 12