A bowling API exercise