Code to implement nokogiri gem