applying rspec and lint