Copying sample code for TrivialQuest.