Contains solution for exercise #2