Outcome's toSucceeded

Added toSucceeded method to Outcome.

I have made Succeeded a sealed abstract class so that it can be returned by toSucceeded method.