Premiere version du code