Add net2 library with examples