changed user class to have class type as string instead of char