add console reading & writing example