my attempt at waro using ruby