Added Solution for Part B