Adding solutions for ex1