Add example for structural typing