Code with thesis structure WORKING