practice code for http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/index.html