Sample Ruby code, written by JeffMo