programs used in learning ruby and demonstration of concept