Made junction return the choice, added related example code in main