now works for three examples