Green machine provides clean water, energy