Created an interface and abstract class for Variable.