Update Week 4 code

All fixed now, probabilities work etc