The science of heraldry