seprate different block of snippet
add refer to constructor solution for coffeescript