deleted test, added getLength method