first attempt to make things object oriented.

was seeing oddness