Updated with "Properties in the class can be accessed by functions but not in the struct"