JavaScript, Python, Ruby, and C; Collect data with arrays and dictionaries, and store it