solutions for the first set