Implemented lab3 tool