updated objects constructor parameters to accept object as opposed to a list of parameters