code for software defined networking class