def and end should be on the same line.