changing class with constants to interface