Guide to the preparation of a thesis