hw2: adding working pre-commit hook script