change class to interface