Write a script that organizes files in a specified directory by grouping them based on file type or other criteria.