Added parent class Card (to avoid code duplication). Added app.properties file. Now using Spring to get Card beans.