Add type hints to each function. - It is necessary to add type hints to improve the readability and maintainability of the code.