doctor patient ruby example