embedded programming basics - Ratio