Save data to dictionary instead of printing it