updated example; added naive predictor