commiting working code before I start adding arguments to be passed