Fixed a Trainer initialization bug.
Cleaned up Ex 10-1