One object in constructor

Updated doc and example