creating base to implement card list
just some refactoring