training working. short demo script for training, but not testing written