math & base entity class