commiting the dirty code just in case. next commit will just include a working function.
commiting the working script
commiting just the function