Copied new question1 to question2
Added Reset and reverse functionality
Connected switches to reverse and reset inputs