test code when learning ruby