lab4 interface added
lab 4 logic added