Homework and code for ruby310 class