ruby home work in semester 6