With the use of data structures, I was able to make this adaptable register program