Compartor example