In Resource class, wrote accessors and harvest() method.