FINISHED both c problems