Code for bkerndev tutorial