my solutions for the exercises