Create class and GUI