Fix redefinition of the functions merged in the last commit
Move example to root directory