added ruby snippet