Working on generic class