added XPManager class