Initial implementation of constructor and addValue