Changed references to "predicate" to "predict"
Cleaned up example a bit, added some more comments