Alternation

Added a method for alternation