added UI class and basic test