a working example lets begin with simulation