This example show the ability to define a different input types.
This is done just with addElement method.