finished C need to fix B

had data structure misunderstanding