nearly done, just need to figure out how to save integers into an array