conditions  and dictionaries demo