initializing data with a dictionary