creating the tools.py where generic functions will be implemented