entirely changed the data struct using structs

don’t know why, just didn’t use classes~