ZER - Solution that includes flipping. Needs to be cleaned up