class lib behavior matrix classes