base lua class