added solution for 2