Merge pull request #2 from asifmansoora/master

Getting Avg function
#Code update (Complete Run)
Changes to Prediction example