source codes for dissertation