Added type attribute to example.