New initializer that accepts a dictionary