object oriented refactor, flip card