work in progress : first fonction
wip pseudo code basic algo