My thesis codes