Shouldn't the type be Purchase[] ?