Guarda che il codice che ti ho postato io è funzionante e NON solo un esempio