beginning ruby code