Using ruby built in struct instead of open struct.