creation of createWave

add of the createWave fct