Made more progress ; need to test assignment operator
finished invert function and tested