This is my Ruby code for my project.