found solutions for all 9 exercises