implement a factory function in "Card"