Code for Stefane Perraud's piece : Horizon