lab3 read/write/setattr