Implemented Lab 6