Solved problem C
Removed extra stuff