delete redundant methods and editing Myfridge class