reformat example implemented in medinria