various code samples for MedMedia