matrix class + objloader