Entity system (with update function)