implement new method in library
problem 3 solved & cleanup