add cards class and test