Example code from Modern IDL book