implements intepreter to generate the attributes and make a unit test of methods