This is a project from my PhD thesis