Hackaton project, this code is free and you can adapt it for you personnal or commercial use, this is a snippet, not a complete code.