Added constructor and added object/set name in one line