updated gesture recognition example