Modified from bash to ruby for the Example block