Added GenerateBinaryCode Problem 9