added solution for 1.1