added possible solution for execise 2.3