Protocol implemented

with protocol and old test works