Bayesian Function Predictor - Coding problem | OneNoughtOne