Added ch14 solutions

Using variables, not quite what it asked for and harder to change the input as suggested