add issue2 and a solution code