Added class guts based on Ammars version. Needs validation.
Changed no_ to num_
Changed no_ to num_
Changed no_ to num_