Formating of the output
More efficient solution