Explaning the code Stephen showed us