Ruby basics with HW 

I completed the second extra credit, but I could not figure out the first extra credit.