initial code from quintus example