example coffeescript pattern for sim