refactoring into .h and .cpp and making scenes out of code