Implemented grant() method for User class.