changed struct to class.