some test coding when studying ruby