added the Num class