implementing Deck class