added a cnn trainer