#2 Changed constructor to use object as parameter