add 1st and 2nd solution