add medium class to structure