Test your ruby skills and complete the specification samples with implementation code.