Code developed for Coursera SDN class