better constructor usage
add addProps and setProps for adding/setting properties of an object, respectively