The codes used in STA135 project