add XtopView class, main.rb for running the program whiel developing