code formating for the solution of the exercise