Implement lab-3