Implement lab 2