improve the file used to test swift. convert into a template. create a class to configure and deploy it.