adding the solutions for each exercise