Exercise with internal classes and lambdas