Practice problems on ruby