define deck class methods