solution for final exercises 1