added first structure and bit code to call NS