ruby sample 3