Converted main class into an interface