Solved task B
Added task C