Corrected the code to generate a public interfacte rather than an internal class