Useful Ruby code for reference