added p22 c solution