problem A,B complete. C partial.