Consider an array of structs for your data instead of multiple separate arrays, it will keep things neat and tidy.