Adding solutions for first 6 exercises