My implementation of the card class

Just to have my version of the card class as a pull request.