Add example using instanceof