changed class to interface