Building a basic computational model of impurity and surface states in a 1-dimensional solid