Thalia:first working version