john's code