add gradient element and basic example