Bowing kata in ruby