Implemented the Deck Class.