an example to learn single-class mode