Ruby examples and testing