contract PriceFetch {

    AggregatorV3Interface internal priceFeed;

    /**
     * Network: Ethereum Mainnet 
     * Aggregator: ETH/USD
     * Address: 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
     */
    constructor() {
        priceFeed = AggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
    }

    /**
     * Returns the latest price
     */
    function getLatestPrice() public view returns (uint256) {
        (
            uint256 roundID, 
            uint256 price,
            uint256 startedAt,
            uint256 timeStamp,
            uint256 answeredInRound
        ) = priceFeed.latestRoundData();
        return price;
    }
}
function getLatestPrice() public view returns (uint256) {
    (
        uint256 roundID, 
        uint256 price,
        uint256 startedAt,
        uint256 timeStamp,
        uint256 answeredInRound
    ) = priceFeed.latestRoundData();
    return price;
}

/**
 * Returns the latest price
 */