This is the code from the pyramid tutorial