Implemented lab3