added 'type' field to 'Medium' struct