This is the code shared in class for Trip Calculator (Day 2)