example now shows middleware in use