Added answer for q3
Added answer for q4