strated with exercises 5

build a fucntion for the minimal test