added p24 c solution