added deck_spec and deck class.