added a second constructor