Tutorial  with working substitution

@dwightguth  please check it out.