Sample codes for thesis