codes for thesis