added names class test code