Added the concept of actions with success and failure.
Added the concept of actions with success and failure.