[coffee] refactor to move extend sample from app.coffee