Fixed the Interface class code