Adding single class diagram use case code.