Implemented feature4.