refactoring Playground