class to interface