aprain.com's code