All useful ruby code