revised card model to store values as a hash map