Example code used in CSE 2341