refactored piano