working sequential classifier