Updated code example to be more realistic.