This is not the best example but i tried You may remix this project and add the code so I can see what you have made
Some times code doesnt do what you want it to do (the way i teach you isnt realy that good and i had to learn it myslef)