added external type to demo.