Writing ruby