Some code for a simple coding excercise