implement clear method
rm stub
implementation for chmod
fix all tests