12 add logic to standerd input in ruby script