Solution for exercise 01