add findDuration function and specify return value for midWay function
comment out hard coded direction test