2nd Problem done