build gesture class