contract A {
    
    uint[] xs;
    
    function Afunction() public {
        xs.push(100);
        xs.push(200);
        xs.push(300);
    }
    
    // can be called from web3
    function foo() public view  {
        return;
    }
}
function foo() public view  {
    return;
}

// can be called from web3