refatoring thesis format