bacher Thesis code