Implement lab 7