Is there a necessary update for the code only section in the tutorials?

I was trying to follow this example but no matter what I do I cannot get this code to compile at all.

What errors do you get on compilation? Everything in there looks like it should work

Hey there, please post the errors you get from the compilation process and send the surrounding source code in the lines it has the errors.