Seperated the outline from the tutorial in Using Strtok