compact() example