Ugly first version but it s working