implementation of playing card
Fixed inheritance