m3/code

working but not yet memory leaks tested