my snipet for ruby