Added function file for summing. Arrow key functionality still not added.