Changed class to interface