Learning Go by implemeting an old C programming excercise