:- object(carlisle, extends(location(166, 226))). links([ (glasgow, 94), (leeds, 117), (newcastle, 58)]). :- end_object.