library SafeMath {
    
    // Operation for multiplication
    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        if (a == 0) {
            return 0;
        }

        c = a * b;
        assert(c / a == b);
        return c;
    }

    // Operation for division
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    // Operation for substraction
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    // Operation for addition
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
        assert(c >= a);
        return c;
    }
}
// Safe math library for mathemarical operations
function div(uint256 a, uint256 b) internal pure returns (uint256) {
    return a / b;
}

// Operation for division