Implemented use case 3; added necessary integration tests.