Implemented lab4