contract Pausable is Ownable {
    event Pause(bool _paused);
    bool public paused = false;

    /**
    * @dev Modifier to make a function callable based on pause states.
    */
    modifier whenNotPaused() {
        require(!paused);
        _;
    }

    /**
    * @dev called by the owner to set new pause flags
    */
    function pause() onlyOwner public {
        paused = !paused;
        Pause(paused);
    }

}
/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
function pause() onlyOwner public {
    paused = !paused;
    Pause(paused);
}

/**
 * @dev called by the owner to set new pause flags
 */