created a struct for data management