Impltemented the Alternate numbers full code