Learning Ruby samples