Changed a deck into an class.