constructor + clear not tested (done in class)