add simple module and convert windows to object oriented goodness