add constructor for passing Attributes