Add a basic class in a closure example