added gem pry, changed edit method