code for senior thesis