add lookup sample code