practice add helper rspec and refactor utilities.rb