my solutions for Quiz 1