solutions added till problem5