added attr aceessor
initial commit