First useful ruby script v1.0