all methods/functions fully implemented. fixed some errors. all tests pass