Coffeescript implementation
Lead index rspec test implemented