implemented card class and main