My ruby codes