changed all functions to file functions.py and added statements to
test.py fir testing the commits