added solution for 2b