Modified lab4,lab5 and implemented lab8