Some new ruby code