contract Cookie {

  function () public payable {}

  // suppose the deployed contract has a purpose

  function getFlavor()
    public
    constant
    returns (string flavor)
  {
    return "mmm ... chocolate chip";
  }
}
function getFlavor()
  public
  constant
  returns (string flavor)
{
  return "mmm ... chocolate chip";
}

// suppose the deployed contract has a purpose