Added working solution for number 2