Here are my solutions for the exam problems