Added trainer classes.

Signed-off-by: Atheriel <atheriel@gmail.com>