Create rubyusefulfunction