added p29 c solution