edited return types. added toString method for the user.class
edited the Rest.class