Added lab4 protocol