implemented card and coupon + basic tests