implementing structs for more readable code.