Refactor sound example