Solution for I.1.2. v1