cards.clj: added new functions