added Variable class
added Term class