Modified function classvalue to accept class value table as an argument.