add solutions

the first and second ones are cool. Looks like there are other ways of solving issues