Implemented vars as pointers