need to convert test to oop for tkinter