Study of ruby