solution for 2