code solves the exercises