demo: set default variable values based on variable type.