This directory contains files for simulating a single trial according to the two-dimensional design described in "Two-dimensional dose finding in discrete dose space" (Wang and Ivanova, 2005, Biometrics, 61, 217-222). Users have options to generate subjects’ responses according to scenarios 1, 2, 3, 4 or 5, that are presented in the paper, or to input subjects’ responses that are actually observed. Design parameters are specified in the function main (trial2.cpp) and include the numbers of dose levels, target toxicity rate, and the total number of subjects in the trial. These design parameters can be changed as needed. The following files are included: rand.cpp: functions for generating random numbers trial_estimation.cpp: functions for estimating the parameters in the working model trial_crm2.cpp : all other functions for the two-dimensional design trial.h, rand.h, trial_estimation.h: header functions and global variables Note: The c++ programs are tested with Microsoft Visual C++ 6.0 compiler on Windows XP operating system. To save the results of a simulated trial, use the DOS command “filename.exe > filename.doc”.