Engineer's invention makes dirty water reusable