Refactoring code into 'Scene' class