classification using previous history values