improved the REGEX and added the pry debugger into the gemfile