ruby study and test