Using complex type in use case