Added main logic for Lab 4 part 1
Extend Lab 4.2
adding ui for l4.1