Created class for serializing HDD object.