no more leaks and errors in valgrind, finally can start implementing this class' interface