added p30 c solution