added: Alternating generator which is the 4th challenge from the course