added card class and moved to card package